<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCWeb.Models.Community>>" %>

<%@ Register Src="~/Views/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="mmuc" %>

<%@ Register Src="~/Views/Shared/LogOnUserControl.ascx" TagName="LogOnUserControl" TagPrefix="louc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>SELECT COMMUNITY</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <louc:LogOnUserControl ID="LogOnUserControl1" runat="server" />
    <!-- BEGIN: MainMenu -->
    <mmuc:MainMenu ID="MainMenu1" runat="server" />
    <!-- END: MainMenu -->
    <h2>
        Select a community to manage menu</h2>
    <% using (Html.BeginForm("IndexCommunityMenu", "Menu", FormMethod.Get, new { id = "SelectCommunityForm" }))
       {%>
    <fieldset>
        <legend>Select a community to manage menu</legend>
        <p>
            <label for="CommunityId">
                Select a community:</label>
            <%= Html.DropDownList("CommunityId", new SelectList(ViewData.Model, "CommunityId", "Name"))%>
            <%= Html.ValidationMessage("CommunityId", "*") %>
        </p>
        <p>
            <input type="submit" value="Select" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
